package com.ycu.epidemic.service;

import com.sun.deploy.security.BadCertificateDialog;
import com.ycu.epidemic.bean.UserInfo;
import com.ycu.epidemic.mapper.UserMapper;
import org.apache.ibatis.annotations.Mapper;
import org.aspectj.apache.bcel.generic.FADD;
import org.aspectj.apache.bcel.generic.IADD;
import org.aspectj.apache.bcel.generic.LADD;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UserServiceImp  implements UserService{

    @Autowired
    private UserMapper userMapper;
    @Override
    public UserInfo findByAccount(UserInfo user) {
        /**
        * 通过账号查询用户
         * @Param user
        * @Author:lijinhua
        * @Date:2020/7/12
        */
        return userMapper.findByAccount(user);
    }
}
